package com.siyuanren.gcocp.dto.wx;

import com.siyuanren.gcocp.common.config.PublicConfig;
import com.siyuanren.gcocp.entity.WxActive;
import lombok.Getter;
import lombok.Setter;

/**
 * @author guwr
 * @date 2018/5/4
 */
@Getter
@Setter
public class WxActiveDTO extends WxActive {

    public String getBannerImg() {
        return PublicConfig.RESOURCE_URL + super.getBannerImg();
    }

    public String getActiveUrl() {
        return String.format("/wx/course/invite?activeId=%s", getId());
    }
}
